charset = "UTF-8";
(function (global) {
  const scheme = `http://`;
  const IP = `172.18.10.194`;
  const serverUrlHost = `${scheme}${IP}`;
  const serverUrlHostWithPort = `${serverUrlHost}:8090`;//`${serverUrlHost}:8090`;
  // 主工作空间
  const mainWorkSpace = `HDT_SW_TQ`;//3D-HDT_SW_TQ
  const shuitiWorkSpace = `ShuiTiChiDu`;
  const poiWorkSpace = `poiShuJuFuWu`;
  const loadWorkSpace=`newload`;
  const newpoiWorkSpace =`newpoi`;
  // 多子域配置端口
  const subdomains = [
    `${IP}:20001`,
    `${IP}:10002`,
    `${IP}:10003`,
    `${IP}:10004`,
    `${IP}:10005`,
    `${IP}:10006`,
    `${IP}:10007`,
    `${IP}:10008`,
    `${IP}:10009`,
    `${IP}:10010`,
  ];
  // 多子域 urlScheme
  const urlSchemeNormal = `http://{s}/iserver/services/3D-${mainWorkSpace}/rest/realspace`;
  const layerHeadUrl =
    serverUrlHostWithPort +
    `/iserver/services/3D-${mainWorkSpace}/rest/realspace/datas/`;
  const shuitiHeadUrl =
    serverUrlHostWithPort +
    `/iserver/services/3D-${shuitiWorkSpace}/rest/realspace/datas/`;
  const dataHeadUrl =
    serverUrlHostWithPort +
    `/iserver/services/data-${mainWorkSpace}/rest/data`;
    //poi数据服务头部
    const poiHeadUrl=
    serverUrlHostWithPort+
    `/iserver/services/data-${poiWorkSpace}/rest/data`;
    //poi3维服务
    const newpoiHeadUrl=
    serverUrlHostWithPort+
    `/iserver/services/3D-${newpoiWorkSpace}/rest/realspace/datas`;
    //路名3维服务
    const newloadHeadUrl=
    serverUrlHostWithPort+
    `/iserver/services/3D-${loadWorkSpace}/rest/realspace/datas`
  global.SUPER_GIS_SPACE = {
    // 用于请求的平台 key
    plat_key:
      "657db6c7852b51ac3404e9d4449d4dde99dfacbc3fb119d6696c5ddde9b6a8f2",
    // 多子域
    urlSchemeNormal: urlSchemeNormal,
    subdomains: subdomains,
    // 请求的 baseUrl
    requestBaseUrl: "http://172.18.10.194",
    // 对于 token 的请求的 baseUrl
    requestTokenBaseUrl: "http://172.18.10.222:8088",
    // 需要跳转的后台的登录地址
    backEndPlatform: "http://172.18.10.194/portal-v3.0/#/portalLogin",
    // 工作船统计数据 fake data ↓
    workingShipData: {
      name: ["在册总数", "工作船总数", "工作船出航数"],
      // data: [402, 201, 160],
      data: [0, 0, 0],
    },
    // L1 级别航标统计
    fiaryWayAnalize: {
      outer: {
        name: ["航标设标数", "实装数字航标", "报警航标数"],
        data: [7286, 5230, 37],
      },
    },
    isMockData: false,
    // 三维 图层服务-普通图层
    layerHeadUrl: layerHeadUrl,
    // 水体的空间
    shuitiHeadUrl: shuitiHeadUrl,
    // 数据服务头 URL
    dataHeadUrl: dataHeadUrl,
    //poi数据服务头部
    poiHeadUrl:poiHeadUrl,
    //poi3维服务头部
    newpoiHeadUrl:newpoiHeadUrl,
    //路名3维服务头部
    newloadHeadUrl:newloadHeadUrl,
    // L1级别 长江干线预览:干线分局  名称 + 局名
    level_1_Map:
      // `http://172.18.10.104:8090/iserver/services/data-ChangJiangGanXianGaiLan/rest/data`,
      `http://172.18.10.194:8090/iserver/services/data-CHSLSW240416/rest/data`,
    // L1级别 长江干线预览 + 标注
    imagecyOfLeafletRiver:
      // "http://172.18.10.104:8090/iserver/services/map-ugcv5-ChangJiangGanXian/wmts100",
      "http://172.18.10.194:8090/iserver/services/map-ugcv5-ChangJiangGanXian230818/wmts100",
    urlOfL1LeafletBaseMapService:
      // `http://172.18.10.104:8090/iserver/services/data-WorkSpace/rest/data`,
      `http://172.18.10.194:8090/iserver/services/data-WorkSpace/rest/data`,
    // 名称
    // 黑色中国背景底图
    imagecyLeafletRestChinaDark:
      `http://172.18.10.194:8090/iserver/services/map-ugcv5-ChinaDarkSCI230816/rest/maps/ChinaDark`,
    imagecyOfLeafletChinaDark:
      // `http://172.18.10.104:8090/iserver/services/map-ugcv5-ChinaDark/wmts100`,
      `http://172.18.10.194:8090/iserver/services/map-ugcv5-ChinaDarkSCI230816/wmts100`,
  };
})(window);
